﻿<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:loc="clr-namespace:Rio.Manager.Application.ViewModel.Locator"
             xmlns:conv="clr-namespace:Rio.Manager.Application.Converters"
             xmlns:app="clr-namespace:Rio.Manager.Application"
             xmlns:res="clr-namespace:Rio.Manager.Application.Utils"
             xmlns:appsvc="clr-namespace:System.ServiceModel.DomainServices.Client.ApplicationServices;assembly=System.ServiceModel.DomainServices.Client.Web"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:Context="clr-namespace:Rio.Framework.Pages.AppCode.Context;assembly=Rio.Framework.Pages"
             x:Class="Rio.Manager.Application.App"
             mc:Ignorable="d">

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Assets/Styles.xaml" />
                <ResourceDictionary>
                    <conv:NotOperatorValueConverter x:Key="NotOperatorValueConverter" />

                    <!--Global View Model Locator-->
                    <loc:ViewModelLocator x:Key="Locator"
                                         d:IsDataSource="True" />
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>


    <Application.ApplicationLifetimeObjects>
        <Context:ApplicationContext ApplicationContextLoaded="InitializeRootVisual" />
        <app:WebContext>
            <app:WebContext.Authentication>
                <appsvc:FormsAuthentication />
                <!--<appsvc:WindowsAuthentication/>-->
            </app:WebContext.Authentication>
        </app:WebContext>
    </Application.ApplicationLifetimeObjects>

</Application>
